package com.lrkj.back.service;

import java.util.List;
import java.util.Map;

import com.lrkj.back.entity.TbPackageProduct;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.api.ParentService;

import com.github.pagehelper.PageInfo;

public interface TbPackageProductService extends ParentService<TbPackageProduct>{

	List<TbPackageProduct> selectByPackageId(String packageId)throws DBException;

	int deleteByPackageId(String packageId)throws DBException;

	List<TbPackageProduct> queryProductListByDepIds(Map<String, Object> map)throws DBException;
	//查找 所有的，带分页的
	PageInfo<TbPackageProduct> selectAllDetais(Map<String,Object> map)throws DBException;

	//根据包号和器械号查
	public List<TbPackageProduct> findAllPackageProduct(Map<String,Object> map)throws DBException;
		
	void deleteByPackageQixieMuban(TbPackageProduct st)throws DBException;
		 
	void updateQixieMun(TbPackageProduct st)throws DBException;

	int insertBatch(List<TbPackageProduct> list) throws DBException;


	int selectNumByPackageId(String packageId) throws DBException;
}
